<?php include_partial('aoiFrontPartials/contentHeader',
  array(
    'nav'=>array(
      array('url'=>url_for('admin_home'),'title'=>'Admin')
    ),
    'title'=>'Admin',
    'description'=>''
  )
); ?>

<section id="content">
  <div class="container">
    
    <div id="mainbody">
      
      <div class="row">
        <div class="span12">

          <h1>Aoi legs List</h1>
<table class="table table-striped">
    <tr>
      <th>Leg</th>
      <th>Flight schedule</th>
      <th>Flight code</th>
      <th>Actual departure time</th>
      <th>Actual arrival time</th>
      <th>Capacity</th>
      <th>Places taken</th>
      <th>Places left</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($aoi_legs as $aoi_leg): ?>
    <tr>
      <td><a href="<?php echo url_for('admin_legs_edit', array('action'=>'edit', 'id'=>$aoi_leg->getId())) ?>"><?php echo $aoi_leg->getName() ?></a></td>
      <td><?php echo $aoi_leg->getFlightScheduleId() ?></td>
      <td><?php echo $aoi_leg->getFlightCode() ?></td>
      <td><?php echo $aoi_leg->getActualDepartureTime() ?></td>
      <td><?php echo $aoi_leg->getActualArrivalTime() ?></td>
      <td><?php echo $aoi_leg->getCapacity() ?></td>
      <td><?php echo $aoi_leg->getPlacesTaken() ?></td>
      <td><?php echo $aoi_leg->getPlacesLeft() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>
        </div> <!-- end span12 -->
      </div><!-- end row -->
    </div><!-- end mainbody -->
  </div><!-- end container -->
</section>
